package com.zzyl.nursing.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Component
public class MyTask {
//    @Scheduled(cron = "0/5 * * * * ?")
    public void runTaskOne() {
        System.out.println("执行静态定时任务时间: " + LocalDateTime.now());
    }
}
